package com.example.robolectricsample

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.example.robolectricsample.base.BaseViewModel
import com.example.robolectricsample.base.NetworkModule
import kotlinx.coroutines.launch

class MainViewModel : BaseViewModel() {

    var mainStringData = MutableLiveData<String>()

    fun fetchList() {
        viewModelScope.launch {
            val data: String = NetworkModule.getCinemaScheduleList()
            mainStringData.value = data
        }
    }
}